﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProductRecycle.aspx.cs" Inherits="Manageweb_ManageProduct_ProductRecycle" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    
<link href="../images/css.css" rel="stylesheet" type="text/css" />
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="1" cellpadding="0" cellspacing="0" width="750">
            <tr>
                <td style="font-weight: bold; color: white; background-color: #507cd1; text-align: left">
                    &nbsp;产品回收站</td>
            </tr>
        </table>
        <br />
        <table border="1" cellpadding="0" cellspacing="0" width="750">
            <tr>
                <td colspan="2" style="font-weight: bold; color: white; background-color: #507cd1; text-align: left">
                    &nbsp;回收站搜索</td>
            </tr>
            <tr>
                <td style="width: 50%; text-align: left">
                    &nbsp;<asp:TextBox ID="TB_Search" runat="server" Width="200px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RFV_TB_Search" runat="server" ControlToValidate="TB_Search"
                        Display="Dynamic" ErrorMessage="*" ValidationGroup="Btn_Search"></asp:RequiredFieldValidator>
                    <asp:Button ID="Btn_Search" runat="server" Text="搜索" OnClick="Btn_Search_Click" ValidationGroup="Btn_Search" /></td>
                <td style="text-align: left">
                    &nbsp;</td>
            </tr>
        </table>
        <br />
        <asp:Label id="LB_ProductRecycle" runat="server" ForeColor="Red" Font-Size="Small" Font-Bold="True"></asp:Label>
        <table border="1" cellpadding="0" cellspacing="0" width="750">
            <tr>
                <td>
                    <asp:GridView ID="GV_DelProductList" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" CellPadding="4" DataSourceID="ODS_DelProductList"
                        ForeColor="#333333" PageSize="15" Width="100%">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField DataField="Product_ID" HeaderText="Product_ID" InsertVisible="False"
                                SortExpression="Product_ID" Visible="False" />
                            <asp:BoundField DataField="Product_Title" HeaderText="标题" SortExpression="Product_Title" />
                            <asp:BoundField DataField="PC_Title" HeaderText="类别" SortExpression="PC_Title" />
                            <asp:TemplateField HeaderText="图片" SortExpression="Product_SmallThumb">
                                <ItemTemplate>
                                    <asp:Image ID="Image1" runat="server" Height="60px" ImageUrl='<%# FormatThumb(Eval("Product_SmallThumb")) %>'
                                        Width="80px" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:LinkButton ID="LBtn_Mod" runat="server" CommandArgument='<%# Eval("Product_ID") %>' OnCommand="LBtn_Mod_Command">修改</asp:LinkButton>
                                    <asp:LinkButton ID="LBtn_RollBack" runat="server" CommandArgument='<%# Eval("Product_ID") %>' OnClientClick="return confirm('确认操作？')" OnCommand="LBtn_RollBack_Command">恢复</asp:LinkButton>
                                    <asp:LinkButton ID="LBtn_RealDel" runat="server" CommandArgument='<%# Eval("Product_ID") %>'
                                        OnCommand="LBtn_RealDel_Command" OnClientClick="return confirm('删除操作不可恢复，是否继续？')">永久删除</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Product_DateTime" HeaderText="创建时间" SortExpression="Product_DateTime" />
                        </Columns>
                        <RowStyle BackColor="#EFF3FB" />
                        <EditRowStyle BackColor="#2461BF" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                        <EmptyDataRowStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EmptyDataTemplate>
                            无任何删除项目<br />
                        </EmptyDataTemplate>
                    </asp:GridView>
                    <asp:ObjectDataSource ID="ODS_DelProductList" runat="server" OldValuesParameterFormatString="original_{0}"
                        SelectMethod="GetDataOrderByDataTime" TypeName="AccessDAL.ProductTableAdapters.PC_PTableAdapter">
                        <SelectParameters>
                            <asp:Parameter DefaultValue="true" Name="Product_IsDel" Type="Boolean" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
